#ifndef _SOCKET_LIST_H_
#define _SOCKET_LIST_H_

#ifdef __cplusplus
extern "C"{
#endif
#include "./rpc_client.h"
typedef struct _SOCKET_LIST_NODE 
{
	int rpc_fd[MAX_CC_NUM];
	int valid;
}SOCKET_LIST_NODE;

int socketListInit();
int socketListOut();
int socketListEmpty();
int socketListIn(int num);

#define SOCKET_LIST_NUM 	1
#define ERROR				-1


extern SOCKET_LIST_NODE socketList[SOCKET_LIST_NUM];

#ifdef __cplusplus
}
#endif
#endif
